home *** CD-ROM | disk | FTP | other *** search
- PROGRAM: SDIR411.COM
-
- GENERAL FUNCTION: To give sorted directory of files on a disk.
-
- WHY IS IT NEEDED? DOS has no convenient or powerful way to order
- a list of files on a disk drive.
-
- INSTALLATION: Probably will want to rename it SD.COM.
-
- FORMAT: SDIR411 [d:][\path][filespec][/options]
-
- EXAMPLES: sdir411 a:/s
-
- HOW TO USE IT: This sorted directory has three major features compared
- to other sorted directory programs. (1) Extremely fast screen
- I/O. It pops the list on the screen rather than filling it slowly
- line by line. Consequently, it always clears away the previous screen.
- (2) Scroll forward and back using PgUp and PgDn keys. (3) It will create
- an commentable file of the list of files. To exit back to DOS, press
- <esc> key.
- The file of comments is an especially interesting option. Whenever
- the "/C" option is used, the program looks for the file SDIR.$$$ and
- will match the comments to the current files on the directory so that
- to comments are merged to the file list. In effect, the comments are
- a data base that can be invoked anytime. The data base file is a
- standard ASCII file that can be edited. Sysops running RBBS can use the
- "/C" option to produce directory lists (DIR files).
- See full docmentation for details.
-
- OTHER EFFECTS: None
-
- SYSTEM REQUIREMENTS: Works with DOS 2.x and 3.0.
-
- COMMENTS: Documentation that follows is that provided by author for
- earlier version 4.0, clarified slightly.
-
- SOURCE OF PROGRAM: Larry Hatt.
-
- TITLE SDIR - SORTED DIRECTORY COMMAND, Version 4.0
-
- REQUIRED CONFIGURATION
-
- * IBM PC or close clone
- * Color Graphic or IBM Mono screen adapter
- * DOS 2.0 or 2.1
- * 80 bytes of disk storage on the current directory
- for each file with a comment.
-
- USING SDIR VERSION 4.0
-
- SDIR [d:][path][filename[.ext]] [options]
- [filespec] same as for DIR command
-
- [options] /A - List hidden files and attributes.
- /C - Single Column Commented Directory.
- /X - Sort by extension.
- /S - Sort by size.
- /D - Sort by date/time.
- /N - Do not sort, original order.
-
- Default = *.* sorted by name.ext with screen erase.
- - Non conflicting Options may be combined.
-
- /C - The directory is listed in one column only; use PgUp/
- PgDn to page through any number of pages. A file SDIR.$$$
- is either created or opened and sorted with comments
- appearing beside the appropriate file. The real directory is
- of course not touched; in fact although each whole file line
- is stored, only the last 40 characters are written to the
- screen. Thus, progressive updates of the same file will keep
- the same comments. The comments for deleted files will auto-
- matically be deleted. Only lines with non-blank comments will
- be written. Every time this option is invoked, SDIR.$$$ will
- be overwritten.
-
- Edit control is available to write new comments:
- - normal upper and lower case characters
- - RTN: jump to beginning of next line
- - DEL and BKSP: distructive cursor left
- - Typeover correction
- - CURSOR: control keys work normally
- - PgUp and PgDn: normal
-
- /A - The column 'ATR' (displayed after the file date/time)
- gives up to 4 attribute codes as follows:
-
- A - Archive bit is off (file has been archived)
- D - Directory entry
- H - Hidden bit is on (file is hidden)
- R - Read-only bit is on (file is read-only)
- S - System bit is on (file is a system file)
-
- ESC: must use this key to return to DOS .
-
- HINT: for faster operation change name of file to SD.COM
-
- NOTE: Although SDIR40.COM has been extensively tested with both
- floppies A: and B: and a 10 MB HDisk both with standard and
- and multi-level sub-directories without problems, it must be con-
- sidered a BETA version. I would appreciate hearing of any problem
- and in particular with MONO screen experience. A developmental
- version was tested on a system with the Hercules Mono card with no
- problems but this has not been retested recently.
-
- BUG WARNING: Do not delete the small box in front of the "bytes
- remaining" in the /C mode. If you do your comments will be destroyed
- and the system will hang on exit. Screen editing beyond the range of
- the directory is not recommended and will be inhibited in future
- versions.
-
- Direct comments or problems to: Larry Hatt PC1269.
- 76 Melville Dr
- Nepean, Ont, K2J2E1
-
-
- DEVELOPMENT OF SDIR
-
-
-
- ORIGINAL. The original file is from an object file named
- SD.HEX from Gene Plantz's BBS in Chicago. John Chapman is
- thought to be the author. It was dis-assembled and com-
- mented by Ted Reuss of Huston, TX. Several modifications
- were made by Ted:
- 1. Filespecs processed as for DIR
- 2. No sort option was added. /N
- 3. Number of files found is printed.
-
- VER 2.2. The GETFREE Subroutine was updated for DOS 2.0
- April 1, 1983 by Jack Y. Fong. His changes are denoted by "JYF"
- at the end of changed lines.
-
- VER 2.3. Added display of current directory name and
- volume name in header lines for DOS Release 2.0. Added total
- of file sizes for the displayed files. These change were made
- by John F. Ratti 29 June, 1983 and are denoted by "2.3" at
- the end of the changed lines.
-
- VER 2.4. Display of attribute byte was added. The column 'ATR'
- (displayed after the file date/time) gives up to 5 attribute
- codes as follows:
- A - Archive bit is off (file has been archived)
- D - Directory entry
- H - Hidden bit is on (file is hidden)
- R - Read-only bit is on (file is read-only)
- S - System bit is on (file is a system file)
- Corrected display of hidden, system, attribute and read-only
- entries when /a option is specified. Added pathname capability.
- Any pathname that DIR will accept works. This version MUST be
- used under MS-DOS release 2.0. These changes were made by
- John F. Ratti 03 July, 1983 and are denoted by "2.4" .
-
- VER 3.0. A 4-column display is available and more display option
- for subdirectories. Authored by W.C. Bodycomb; the changes in
- this version are not incorporated in Version 4.0.
-
- VER 4.0. The display was speeded up and made more flexible with
- the implementation of direct screen access (both CG and MONO).
- PgUp and PgDn control paging and ESC returns to DOS. The
- COMMENTED DIRECTORY option was added (/C). This places the
- directory in single column mode leaving the right side of the
- screen for comments up to 40 characters long. The cursor control
- keys are used for positioning; BKSP, DEL and RTN function along
- with page control. The program creates/uses a file called
- SDIR.$$$ on each disk/directory to store comments. Only lines with
- some (any) info written beside files are stored. Existing com-
- ments are automatically loaded if the /C is used on the command
- line and these can be edited or new ones added as desired.
- Uncommented files do not add to storage in SDIR.$$$
-
- Version 4.0 changes were made by Larry Hatt, Nepean, Ont
- June/July 1984.
-
- Downloaded from PCBBS-Chicago (Sysop-Gene Plantz) August 11, 1983
- Uploaded to PCanada by Mark Magner (PC296) August 11, 1983
- Uploaded Ver 4.0 to PCanada by Larry Hatt (PC1269)August 8, 1984
-
- Direct comments or problems to Larry Hatt PC1269.